package org.dromara.chicken.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.tenant.core.TenantEntity;

import java.io.Serial;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 减少记录对象 chicken_reduce
 *
 * @author Mr Lei QQ 235921049
 * @date 2024-06-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("chicken_reduce")
public class ChickenReduce extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id")
    @ExcelProperty(value = "ID")
    private Long id;

    /**
     * 标题
     */
    @ExcelProperty(value = "标题")
    private String title;

    /**
     * 经手人
     */
    private Long workerId;
    @TableField(exist = false)
    private String workerName;

    /**
     * 减少数量
     */
    @ExcelProperty(value = "减少数量")
    private Long totalNum;

    /**
     * 重量
     */
    @ExcelProperty(value = "减少重量")
    private BigDecimal totalWeight;



    /**
     * 简要说明
     */
    private String remark;

    /**
     * 单据状态
     */
    @ExcelProperty(value = "单据状态")
    @ExcelDictFormat(dictType = "order_status")
    private Integer auditStatus;

    /**
     * 审核时间
     */
    private Date auditTime;

    /**
     * 审核备注
     */
    private String auditRemark;

    /**
     * 审核人
     */
    private Long auditBy;
    @TableField(exist = false)
    private List<ChickenReduceInfo> contentInfo;


}
